﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using CarAppClient.Controls.Base;
using CarAppClient.Extension;
using CarAppClient.Views.CarType.ViewModels.CarType;
using CarAppClient.Views.CarTypeVersion.ViewModels.CarTypeVersion;
using CarAppDto.CarType.CarTypeDtos;


namespace CarAppClient.Views.CarType.Views.CarTypeVersion
{
    /// <summary>
    /// 车辆类型管理
    /// </summary>
    public partial class Page_CarTypeVersion_Query : Window
    {
        public Page_CarTypeVersion_Query( string? type = null,string? areaid=null)
        {
            InitializeComponent();
            this.DataContext = new CarTypeVersionQueryViewModel(this, type,areaid);
        }

        private void DataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            e.Row.Header = e.Row.GetIndex() + 1;
        }
    }
}
